<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>基础信息</title>
<link rel="stylesheet" type="text/css"
	href="/CdutPostBar/css/userinfo.css">
</head>
<body>
<form action="">
	<table>
		<tr>
			<td colspan="2"><img id="peopleimg" src="${session.user.image }"
				alt="头像"></td>
			<td><label>头像：</label></td>
			<td><input type="file"></input></td>
		</tr>
		<tr>
			<td><label>称昵：</label></td>
			<td><input type="text" name="account" value="${session.user .account}" placeholder="zim"></input></td>
			<td><label>姓名：</label></td>
			<td><input type="text" name="name" value="${session.user.name }" placeholder="zimu"></input></td>
		</tr>
		<tr>
			<td><c:if test="${session.user.userType=='t'}">
					<label>工号：</label>
				</c:if>
				<c:if test="${session.user.userType=='s'}">
					<label>学号：</label>
				</c:if></td>
			<td><input type="text" name="workNumber" value="${session.user.workNumber }" placeholder="zimu"></input></td>
			<td><label>手机：</label></td>
			<td><input type="text" name="phoneNumber" value="${session.user.phoneNumber }" placeholder="zimu"></input></td>
		</tr>
		<tr>
			<td><label>性别：</label></td>
			<td><input type="radio" name="sex" value="m">男</input> <input
				type="radio" name="sex" value="f">女</input></td>
			<td><label>用户：</label></td>
			<td><input type="radio" name="userType" value="t">教师</input> <input
				type="radio" name="userType" value="s">学生</input></td>
		</tr>

		<tr>
			<td><label>QQ：</label></td>
			<td><input type="text" name="qqNumber" value="${session.user.qqNumber }" placeholder="zimu"></input></td>
			<td><label>邮箱：</label></td>
			<td><input type="email " name="email" value="${session.user.email }" placeholder="zim"></input></td>
		</tr>


		<tr>
			<td><label>简介：</label></td>
			<td colspan="3"><textarea name="introduction" rows="10" cols="60"> ${session.user.introduction }</textarea></td>
		</tr>
		<tr>
		<td><input type="submit" value="保存"></td>
		</tr>
	</table>
	</form>
</body>
</html>